/**
 * 
 */
package com.chsimple.cms.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Generated;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import com.chsimple.cms.framework.entity.BaseEntity;

/**
 * @author chsimple
 *
 */
@Entity
@Table(name="SYS_USER")
@Where(clause="IS_DELETE=0")
@SQLDelete(sql="UPDATE SYS_USER SET IS_DELETE=1 WHERE ID = ?")
public class User extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3714628276187899603L;
	
	@Id
	private Long id;
	
	@Column(name="GUID")
	@GeneratedValue(strategy=GenerationType.AUTO, generator="uuid")
	private String guid;
}
